<div class="message">
	<div class="meta-message-header">
		<div class="meta-message-picture">
			<img ng-src="{{user.avatar===null?'../../images/common/header.png':user.avatar}}" />
		</div>
		<div class="meta-message-name">
			{{user.name}} &nbsp;<small>{{user.email}}</small>
		</div>
	</div>
	<ul class="meta-message-info">
		<li><a target="_blank" ui-sref="meta.permission.demand.user.list({page: 1, manager: user.name})">我的需求：{{listCtrl.demandNum}}</a></li>
		<li><a target="_blank" ui-sref="meta.permission.demand.cooperation.list({page: 1, manager: user.name})">我的合作：{{listCtrl.copNum}}</a></li>
		<li><a target="_blank" ui-sref="meta.permission.technology.technology.list({page: 1, manager: user.name})">我的技术：{{listCtrl.techNum}}</a></li>
		<li><a target="_blank" ui-sref="meta.permission.technology.solution.list({page: 1, manager: user.name})">我的方案：{{listCtrl.solNum}}</a></li>
		<li class="action">
			<div class="btn-group" uib-dropdown>
				<button type="button" class="btn btn-info btn-xs">账号管理</button>
				<button type="button" class="btn btn-info btn-xs" uib-dropdown-toggle>
					<span class="caret"></span>
				</button>
				<ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="split-button">
					<li role="menuitem"><a ng-click="openModel('','views/permission/modal/avater.html', 'AvaterModelCtrl', {id: user.id, avater: user.avatar})">修改头像</a></li>
					<li role="menuitem"><a ng-click="openModel('sm','views/permission/modal/userModel.html', 'UserModelCtrl', {id:user.id}, false)">修改信息</a></li>
					<li role="menuitem"><a ng-click="openModel('sm','views/permission/modal/password.html', 'PasswordModelCtrl', {id:user.id})">修改密码</a></li>
				</ul>
			</div>
		</li>
		<li class="clear-float"></li>
	</ul>
	<div class="meta-message-body">
		<h5>我的消息：共 {{listCtrl.tableParams.total}} 项消息</h5>
		<ul class="meta-message-list">
			<li ng-repeat="element in listCtrl.tableParams.data track by $index" ng-click="openModel('sm','views/permission/modal/messageModel.html', 'MessageDetailCtrl', element)">
				<span class="tag">【{{element.tag}}】</span>
				<span ng-bind-html="element.content" class="message-content"></span>
				<span class="time">{{ element.createdAt | date:"yyyy-MM-dd hh:mm a" }}</span>
			</li>
		</ul>
		<div class="meta-page" ui-view="page"></div>
	</div>
</div>
